
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>qilu-http-service · 启路框架-使用手册</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-insert-logo/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-lightbox/css/lightbox.min.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-flexible-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-page-toc-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="validateReadme.html" />
    
    
    <link rel="prev" href="qilu-export-readme.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    整体介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../ready/ready.html">
            
                <a href="../ready/ready.html">
            
                    
                    技术准备
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../ready/ide.html">
            
                <a href="../ready/ide.html">
            
                    
                    eclipse
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../ready/build.html">
            
                <a href="../ready/build.html">
            
                    
                    本地构建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../ready/nexus.html">
            
                <a href="../ready/nexus.html">
            
                    
                    私服构建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../ready/run.html">
            
                <a href="../ready/run.html">
            
                    
                    运行调试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../ready/specification.html">
            
                <a href="../ready/specification.html">
            
                    
                    结构和分包
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="baseReadme.html">
            
                <a href="baseReadme.html">
            
                    
                    基础包介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="qiluTask-readme.html">
            
                <a href="qiluTask-readme.html">
            
                    
                    qilu-task
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="cache-readme.html">
            
                <a href="cache-readme.html">
            
                    
                    qilucache
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="qiluMybatis-readme.html">
            
                <a href="qiluMybatis-readme.html">
            
                    
                    qilu-mybatis
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="logTrace-readme.html">
            
                <a href="logTrace-readme.html">
            
                    
                    qilu-logTrace
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="qilu-export-readme.html">
            
                <a href="qilu-export-readme.html">
            
                    
                    qilu-export
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3.6" data-path="httpService-readme.html">
            
                <a href="httpService-readme.html">
            
                    
                    qilu-http-service
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="validateReadme.html">
            
                <a href="validateReadme.html">
            
                    
                    qilu-validate
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../state/state-course.html">
            
                <a href="../state/state-course.html">
            
                    
                    交易一致的由来
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../state/state-settle.html">
            
                <a href="../state/state-settle.html">
            
                    
                    qilu-state使用说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../state/state-demo.html">
            
                <a href="../state/state-demo.html">
            
                    
                    购买订单的处理示例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../backSample/backSampleReadme.html">
            
                <a href="../backSample/backSampleReadme.html">
            
                    
                    后台代码模板
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../backSample/security.html">
            
                <a href="../backSample/security.html">
            
                    
                    安全介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../backSample/deploy.html">
            
                <a href="../backSample/deploy.html">
            
                    
                    部署集成
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../backSample/config.html">
            
                <a href="../backSample/config.html">
            
                    
                    spring配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../backSample/sso.html">
            
                <a href="../backSample/sso.html">
            
                    
                    SSO集成
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../backSample/example.html">
            
                <a href="../backSample/example.html">
            
                    
                    常见代码示例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../test/readme.html">
            
                <a href="../test/readme.html">
            
                    
                    关于测试
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../test/unitTest.html">
            
                <a href="../test/unitTest.html">
            
                    
                    单元测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../test/function.html">
            
                <a href="../test/function.html">
            
                    
                    功能测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../test/noFunction.html">
            
                <a href="../test/noFunction.html">
            
                    
                    非功能测试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../video/test.html">
            
                <a href="../video/test.html">
            
                    
                    视频
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../video/build.html">
            
                <a href="../video/build.html">
            
                    
                    项目构建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../video/state.html">
            
                <a href="../video/state.html">
            
                    
                    交易一致
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >qilu-http-service</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="httpservice&#x4ECB;&#x7ECD;">HttpService&#x4ECB;&#x7ECD;</h1>
<p>&#x5F53;&#x770B;&#x5230;Feign&#x7684;&#x6E90;&#x7801;,&#x6211;&#x5C31;&#x60F3;&#x5230;&#x6211;&#x66FE;&#x7ECF;&#x5199;&#x7684;HttpService,&#x5728;springCloud&#x8FD8;&#x6CA1;&#x6709;&#x6D41;&#x884C;&#x7684;&#x65F6;&#x5019;,&#x6211;&#x66FE;&#x7ECF;&#x5F00;&#x53D1;&#x7684;HttpService&#x7684;&#x4E2D;&#x95F4;&#x4EF6;&#x5C31;&#x5DF2;&#x7ECF;&#x5728;&#x4F7F;&#x7528;&#x7C7B;&#x4F3C;&#x7684;&#x673A;&#x5236;&#x6765;&#x5B9E;&#x73B0;&#x8FDC;&#x7A0B;&#x8C03;&#x7528;&#x4E86;.</p>
<p>&#x5728;&#x5DEE;&#x4E0D;&#x591A;12&#x5E74;&#x7684;&#x65F6;&#x5019;,&#x5F53;&#x65F6;&#x8BBE;&#x8BA1;&#x7684;&#x521D;&#x8877;&#x5C31;&#x662F;&#x4E0D;&#x60F3;&#x4F7F;&#x7528;Dubbo,&#x56E0;&#x4E3A;dubbo&#x592A;&#x91CD;&#x91CF;&#x7EA7;,&#x5982;&#x679C;&#x76F4;&#x63A5;&#x901A;&#x8FC7;http&#x8FDB;&#x884C;&#x8FDC;&#x7A0B;&#x670D;&#x52A1;&#x7684;&#x8C03;&#x7528;,&#x4F1A;&#x66F4;&#x52A0;&#x8F7B;&#x91CF;&#x7EA7;.&#x800C;&#x65E9;&#x5728;spring1.x&#x7684;&#x5E74;&#x4EE3;,spring&#x5C31;&#x5DF2;&#x7ECF;&#x63A8;&#x51FA;HttpInvoker,&#x4F7F;&#x7528;Http&#x534F;&#x8BAE;&#x8FDB;&#x884C;&#x8FDC;&#x7A0B;&#x8C03;&#x7528;&#x4E86;.&#x5F53;&#x65F6;&#x6211;&#x4EEC;&#x770B;&#x5230;HttpInvoker&#x975E;&#x5E38;&#x4E0D;&#x597D;&#x7528;,&#x5C31;&#x81EA;&#x5DF1;&#x5199;&#x4E86;HttpService.</p>
<p>&#x6240;&#x4EE5;&#x76F4;&#x5230;&#x76EE;&#x524D;&#x4E3A;&#x6B62;,&#x6211;&#x5BF9;&#x4E8E;springCloud&#x4E2D;&#x5E7F;&#x4E3A;&#x5439;&#x725B;&#x7684;ribbon,hytrix&#x7B49;&#x529F;&#x80FD;,&#x90FD;&#x4E0D;&#x662F;&#x592A;&#x611F;&#x5192;,&#x4E2D;&#x95F4;&#x6574;&#x4E86;&#x90A3;&#x4E48;&#x591A;&#x6982;&#x5FF5;,&#x672C;&#x8D28;&#x4E0A;&#x5C31;&#x662F;&#x901A;&#x8FC7;java&#x6765;&#x5B9E;&#x73B0;&#x4E86;NGINX&#x7684;&#x529F;&#x80FD;,&#x975E;&#x5E38;&#x534E;&#x800C;&#x4E0D;&#x5B9E;.</p>
<p>&#x7B49;&#x5230;springCloud&#x7684;&#x70ED;&#x6F6E;&#x8FC7;&#x53BB;&#x4EE5;&#x540E;,&#x770B;&#x770B;HttpService&#x4F5C;&#x4E3A;&#x4E00;&#x4E2A;&#x8F7B;&#x91CF;&#x7EA7;&#x7684;&#x8FDC;&#x7A0B;&#x8C03;&#x7528;,&#x80FD;&#x5426;&#x8FD8;&#x6709;&#x7528;&#x6B66;&#x4E4B;&#x5730;.</p>
<h2 id="&#x8FD0;&#x884C;&#x793A;&#x4F8B;">&#x8FD0;&#x884C;&#x793A;&#x4F8B;</h2>
<p>&#x8BF7;&#x79FB;&#x6B65;<a href="https://gitee.com/senvon/state-demo" target="_blank">state-demo&#x6E90;&#x7801;</a>,&#x5728;mock&#x5DE5;&#x7A0B;&#x5185;.</p>
<h2 id="&#x4EE3;&#x7801;&#x96C6;&#x6210;">&#x4EE3;&#x7801;&#x96C6;&#x6210;</h2>
<h3 id="maven&#x5F15;&#x5165;">maven&#x5F15;&#x5165;</h3>
<pre class="language-"><code class="lang-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>dependency</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>groupId</span><span class="token punctuation">&gt;</span></span>com.9istock.base<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>groupId</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>artifactId</span><span class="token punctuation">&gt;</span></span>qilu-http-service<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>artifactId</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>version</span><span class="token punctuation">&gt;</span></span>1.0.0<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>version</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>dependency</span><span class="token punctuation">&gt;</span></span>
</code></pre>
<h3 id="&#x63A5;&#x53E3;&#x58F0;&#x660E;">&#x63A5;&#x53E3;&#x58F0;&#x660E;</h3>
<p>&#x6574;&#x4F53;&#x6CE8;&#x89E3;&#x4F7F;&#x7528;JSR311&#x6574;&#x4E2A;restful&#x7684;&#x89C4;&#x8303;&#x6765;&#x8FDB;&#x884C;.&#x4E0D;&#x9700;&#x8981;&#x4F9D;&#x8D56;&#x5176;&#x4ED6;&#x7684;&#x5305;.</p>
<pre class="language-"><code class="lang-java"><span class="token annotation punctuation">@Path</span><span class="token punctuation">(</span><span class="token string">&quot;httpMock&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token keyword">interface</span> <span class="token class-name">HttpServiceMock</span> <span class="token punctuation">{</span>

    <span class="token keyword">public</span> <span class="token class-name">ApiBaseResponse</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span> <span class="token function">test1</span><span class="token punctuation">(</span><span class="token annotation punctuation">@QueryParam</span><span class="token punctuation">(</span><span class="token string">&quot;requestId&quot;</span><span class="token punctuation">)</span> <span class="token class-name">String</span> requestId<span class="token punctuation">)</span><span class="token punctuation">;</span>

    <span class="token keyword">public</span> <span class="token class-name">ApiBaseResponse</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span> <span class="token function">test2</span><span class="token punctuation">(</span><span class="token class-name">ModelTest</span> model <span class="token punctuation">,</span> <span class="token class-name">MdoelMock</span> mock<span class="token punctuation">)</span><span class="token punctuation">;</span>

    <span class="token annotation punctuation">@Consumes</span><span class="token punctuation">(</span>value<span class="token operator">=</span><span class="token string">&quot;application/json&quot;</span><span class="token punctuation">)</span>
    <span class="token keyword">public</span> <span class="token class-name">ApiBaseResponse</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span> <span class="token function">test3</span><span class="token punctuation">(</span><span class="token class-name">Map</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span> <span class="token punctuation">,</span> <span class="token class-name">Object</span><span class="token punctuation">&gt;</span></span> paramMap<span class="token punctuation">)</span><span class="token punctuation">;</span>

    <span class="token annotation punctuation">@Consumes</span><span class="token punctuation">(</span>value<span class="token operator">=</span><span class="token string">&quot;application/json&quot;</span><span class="token punctuation">)</span>
    <span class="token keyword">public</span> <span class="token class-name">ApiBaseResponse</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span> <span class="token function">test4</span><span class="token punctuation">(</span><span class="token class-name">List</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">ModelTest</span><span class="token punctuation">&gt;</span></span> modelList<span class="token punctuation">)</span><span class="token punctuation">;</span>

    <span class="token keyword">public</span> <span class="token class-name">ApiBaseResponse</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span> <span class="token function">test5</span><span class="token punctuation">(</span><span class="token annotation punctuation">@QueryParam</span><span class="token punctuation">(</span><span class="token string">&quot;numberList&quot;</span><span class="token punctuation">)</span><span class="token class-name">Integer</span><span class="token punctuation">[</span><span class="token punctuation">]</span> numberList<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
</code></pre>
<h3 id="&#x5BA2;&#x6237;&#x7AEF;spring&#x914D;&#x7F6E;">&#x5BA2;&#x6237;&#x7AEF;spring&#x914D;&#x7F6E;</h3>
<p>&#x8FD9;&#x90E8;&#x5206;&#x7684;&#x6E90;&#x7801;&#x5728;qilu-state&#x7684;sample&#x5DE5;&#x7A0B;&#x91CC;&#x9762;</p>
<pre class="language-"><code class="lang-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>bean</span> <span class="token attr-name">id</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>mockService<span class="token punctuation">&quot;</span></span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>com.istock.base.qiluHttpService.client.HttpProxyFactoryCglib<span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span>
    <span class="token comment">&lt;!-- &#x6A21;&#x62DF;&#x7684;&#x63A5;&#x53E3;,&#x4E00;&#x822C;&#x58F0;&#x660E;&#x5904;&#x7406;,&#x8BA9;controller&#x5B9E;&#x73B0; --&gt;</span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>targetClass<span class="token punctuation">&quot;</span></span> <span class="token attr-name">value</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>com.istock.state.demo.api.MockService<span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
    <span class="token comment">&lt;!-- &#x670D;&#x52A1;&#x7AEF;&#x5730;&#x5740;,&#x4E00;&#x822C;&#x914D;&#x7F6E;http://ip:&#x7AEF;&#x53E3;/contextPath &#x540E;&#x7EED;&#x90E8;&#x95E8;&#x4F1A;&#x901A;&#x8FC7;@Path&#x62FC;&#x63A5; --&gt;</span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>endPoint<span class="token punctuation">&quot;</span></span> <span class="token attr-name">value</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>${mock.endpoint}<span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
    <span class="token comment">&lt;!-- &#x8D85;&#x65F6;&#x65F6;&#x95F4;,&#x5F88;&#x91CD;&#x8981;,&#x9ED8;&#x8BA4;5s,&#x4E0D;&#x5EFA;&#x8BAE;&#x4E0D;&#x914D;&#x7F6E; --&gt;</span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>timeOut<span class="token punctuation">&quot;</span></span> <span class="token attr-name">value</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>1000<span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
    <span class="token comment">&lt;!-- &#x8BF7;&#x6C42;&#x7684;&#x540E;&#x7F00;,&#x53EF;&#x4EE5;&#x4E3A;&#x7A7A; --&gt;</span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>methodFix<span class="token punctuation">&quot;</span></span> <span class="token attr-name">value</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>.do<span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
    <span class="token comment">&lt;!-- &#x8BF7;&#x6C42;&#x62E6;&#x622A;&#x5668;,&#x7C7B;&#x4F3C;&#x4E8E;Feign&#x4E2D;&#x7684;RequestInterceptor,&#x53EF;&#x4EE5;&#x81EA;&#x5B9A;&#x4E49; --&gt;</span>
    <span class="token comment">&lt;!-- &#x8FD9;&#x8FB9;&#x6A21;&#x62DF;&#x7684;&#x662F;&#x4E00;&#x4E2A;&#x8BF7;&#x6C42;&#x9700;&#x8981;&#x7B7E;&#x540D;&#x7684;&#x73A9;&#x6CD5;,&#x9ED8;&#x8BA4;&#x7684;&#x7B7E;&#x540D;&#x7B97;&#x6CD5;,&#x662F;Md5(&#x6392;&#x5E8F;(&#x53C2;&#x6570;)&amp;key) --&gt;</span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>requestHandler<span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>bean</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>com.istock.base.qiluHttpService.client.SignHttpRequestHandler<span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>signName<span class="token punctuation">&quot;</span></span> <span class="token attr-name">value</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>senvon<span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>signKey<span class="token punctuation">&quot;</span></span> <span class="token attr-name">value</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>12345<span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>bean</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>bean</span><span class="token punctuation">&gt;</span></span>
</code></pre>
<h3 id="&#x5BA2;&#x6237;&#x7AEF;&#x7684;&#x8C03;&#x7528;">&#x5BA2;&#x6237;&#x7AEF;&#x7684;&#x8C03;&#x7528;</h3>
<p>&#x5F53;&#x4F7F;&#x7528;&#x5230;&#x4EE3;&#x7406;&#x5BF9;&#x8C61;&#x65F6;,&#x5BA2;&#x6237;&#x7AEF;&#x901A;&#x8FC7;&#x63A5;&#x53E3;&#x7C7B;&#x4E2D;&#x58F0;&#x660E;&#x7684;annotation,&#x62FC;&#x88C5;&#x8BF7;&#x6C42;url&#x548C;&#x8BF7;&#x6C42;&#x5185;&#x5BB9;,&#x62FC;&#x88C5;&#x7684;&#x5185;&#x5BB9;&#x5982;&#x4E0A;.</p>
<pre class="language-"><code class="lang-java"><span class="token annotation punctuation">@Autowired</span>
<span class="token keyword">private</span> <span class="token class-name">HttpServiceMock</span> mock<span class="token punctuation">;</span>
</code></pre>
<p>&#x5BA2;&#x6237;&#x7AEF;&#x4F7F;&#x7528;autowired&#x7684;&#x65B9;&#x5F0F;&#x901A;&#x8FC7;spring&#x6CE8;&#x5165;&#x5BF9;&#x8C61;</p>
<h4 id="test1&#x7684;&#x65E5;&#x5FD7;&#x6253;&#x5370;">test1&#x7684;&#x65E5;&#x5FD7;&#x6253;&#x5370;</h4>
<pre class="language-"><code class="lang-java"><span class="token comment">//public ApiBaseResponse&lt;String&gt; test1(@QueryParam(&quot;requestId&quot;) String requestId);</span>

INFO  c<span class="token punctuation">.</span>i<span class="token punctuation">.</span>b<span class="token punctuation">.</span>h<span class="token punctuation">.</span>u<span class="token punctuation">.</span><span class="token class-name">HttpSignCalculator</span> <span class="token operator">-</span> sign calcuate param<span class="token operator">:</span>requestId<span class="token operator">=</span><span class="token number">124</span><span class="token operator">&amp;</span><span class="token number">12345</span>
INFO  c<span class="token punctuation">.</span>i<span class="token punctuation">.</span>b<span class="token punctuation">.</span>h<span class="token punctuation">.</span>u<span class="token punctuation">.</span><span class="token class-name">HttpConnectionUtils</span> <span class="token operator">-</span> ready <span class="token keyword">to</span> send post http request<span class="token operator">:</span>http<span class="token operator">:</span><span class="token operator">/</span><span class="token operator">/</span>localhost<span class="token operator">:</span><span class="token number">17070</span><span class="token operator">/</span>mock<span class="token operator">/</span>httpMock<span class="token operator">/</span>test1<span class="token punctuation">.</span><span class="token keyword">do</span> <span class="token punctuation">,</span>params<span class="token operator">:</span><span class="token punctuation">,</span>body<span class="token operator">:</span><span class="token punctuation">{</span><span class="token string">&quot;requestId&quot;</span><span class="token operator">:</span><span class="token string">&quot;124&quot;</span><span class="token punctuation">}</span> <span class="token punctuation">,</span> header<span class="token operator">:</span><span class="token punctuation">{</span>senvon<span class="token operator">=</span><span class="token number">1867852F</span><span class="token number">1</span>EB36D63441B100291DB8DDB<span class="token punctuation">}</span>
INFO  c<span class="token punctuation">.</span>i<span class="token punctuation">.</span>h<span class="token punctuation">.</span><span class="token class-name">HttpServiceController</span> <span class="token operator">-</span> ready <span class="token keyword">to</span> test1 <span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token number">124</span>
</code></pre>
<p>@QueryPram&#x7684;&#x6CE8;&#x89E3;,&#x662F;&#x4E3A;&#x4E86;&#x5728;&#x751F;&#x6210;form&#x8BF7;&#x6C42;&#x65F6;&#x5019;,&#x751F;&#x6210;a=xxx&#x7684;a,spring&#x662F;&#x901A;&#x8FC7;ASM,&#x5230;&#x7F16;&#x8BD1;&#x540E;&#x7684;class&#x6587;&#x4EF6;&#x4E2D;&#x627E;&#x5230;&#x7684;&#x53C2;&#x6570;&#x540D;,&#x8FD9;&#x8FB9;&#x662F;&#x901A;&#x8FC7;@QueryParam&#x8FDB;&#x884C;&#x6307;&#x5B9A;&#x7684;.</p>
<h4 id="test2&#x7684;&#x65E5;&#x5FD7;&#x6253;&#x5370;">test2&#x7684;&#x65E5;&#x5FD7;&#x6253;&#x5370;</h4>
<p>&#x5728;test2&#x4E2D;,&#x56E0;&#x4E3A;&#x4F20;&#x5165;2&#x4E2A;bean,bean&#x7684;&#x5C5E;&#x6027;&#x4F1A;&#x88AB;&#x62C6;&#x5206;&#x4E3A;requestMap,&#x5C5E;&#x6027;&#x540D;&#x4E0D;&#x80FD;&#x91CD;&#x590D;</p>
<p>&#x5728;springMVC&#x7684;controller&#x4E2D;,bean&#x7684;&#x5C5E;&#x6027;&#x6CE8;&#x5165;,&#x53EA;&#x80FD;&#x6CE8;&#x5165;&#x7B2C;&#x4E00;&#x5C42;&#x7684;&#x5C5E;&#x6027;,&#x4E0D;&#x80FD;&#x6CE8;&#x5165;&#x7B2C;&#x4E8C;&#x5C42;&#x53CA;&#x4EE5;&#x4E0B;&#x7684;&#x5C5E;&#x6027;</p>
<pre class="language-"><code class="lang-java"><span class="token comment">//public ApiBaseResponse&lt;String&gt; test2(ModelTest model , MdoelMock mock);</span>
INFO  c<span class="token punctuation">.</span>i<span class="token punctuation">.</span>b<span class="token punctuation">.</span>h<span class="token punctuation">.</span>u<span class="token punctuation">.</span><span class="token class-name">HttpSignCalculator</span> <span class="token operator">-</span> sign calcuate param<span class="token operator">:</span>aaa<span class="token operator">=</span><span class="token number">12314</span><span class="token operator">&amp;</span>age<span class="token operator">=</span><span class="token number">123</span><span class="token operator">&amp;</span>bbb<span class="token operator">=</span><span class="token number">1</span>qza<span class="token operator">&amp;</span>name<span class="token operator">=</span>senvon1<span class="token punctuation">,</span>qazxs<span class="token operator">&amp;</span><span class="token number">12345</span>
INFO  c<span class="token punctuation">.</span>i<span class="token punctuation">.</span>b<span class="token punctuation">.</span>h<span class="token punctuation">.</span>u<span class="token punctuation">.</span><span class="token class-name">HttpConnectionUtils</span> <span class="token operator">-</span> ready <span class="token keyword">to</span> send post http request<span class="token operator">:</span>http<span class="token operator">:</span><span class="token operator">/</span><span class="token operator">/</span>localhost<span class="token operator">:</span><span class="token number">17070</span><span class="token operator">/</span>mock<span class="token operator">/</span>httpMock<span class="token operator">/</span>test2<span class="token punctuation">.</span><span class="token keyword">do</span> <span class="token punctuation">,</span>params<span class="token operator">:</span><span class="token punctuation">,</span>body<span class="token operator">:</span><span class="token punctuation">{</span><span class="token string">&quot;_DEFAULT0&quot;</span><span class="token operator">:</span><span class="token punctuation">{</span><span class="token string">&quot;aaa&quot;</span><span class="token operator">:</span><span class="token string">&quot;12314&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;bbb&quot;</span><span class="token operator">:</span><span class="token string">&quot;1qza&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;name&quot;</span><span class="token operator">:</span><span class="token string">&quot;senvon1,qazxs&quot;</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token string">&quot;_DEFAULT1&quot;</span><span class="token operator">:</span><span class="token punctuation">{</span><span class="token string">&quot;age&quot;</span><span class="token operator">:</span><span class="token number">123</span><span class="token punctuation">,</span><span class="token string">&quot;name&quot;</span><span class="token operator">:</span><span class="token string">&quot;senvon1,qazxs&quot;</span><span class="token punctuation">}</span><span class="token punctuation">}</span> <span class="token punctuation">,</span> header<span class="token operator">:</span><span class="token punctuation">{</span>senvon<span class="token operator">=</span>BC546013CA0F5F7B91DCB634394F78AE<span class="token punctuation">}</span>
INFO  c<span class="token punctuation">.</span>i<span class="token punctuation">.</span>h<span class="token punctuation">.</span><span class="token class-name">HttpServiceController</span> <span class="token operator">-</span> ready <span class="token keyword">to</span> test2 <span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span>com<span class="token punctuation">.</span>istock<span class="token punctuation">.</span>http<span class="token punctuation">.</span><span class="token class-name">ModelTest</span><span class="token annotation punctuation">@6f75652d</span><span class="token punctuation">[</span>aaa<span class="token operator">=</span><span class="token number">12314</span><span class="token punctuation">,</span>bbb<span class="token operator">=</span><span class="token number">1</span>qza<span class="token punctuation">,</span>name<span class="token operator">=</span>senvon1<span class="token punctuation">,</span>qazxs<span class="token punctuation">]</span><span class="token punctuation">,</span>com<span class="token punctuation">.</span>istock<span class="token punctuation">.</span>http<span class="token punctuation">.</span><span class="token class-name">MdoelMock</span><span class="token annotation punctuation">@27e98006</span><span class="token punctuation">[</span>name<span class="token operator">=</span>senvon1<span class="token punctuation">,</span>qazxs<span class="token punctuation">,</span>age<span class="token operator">=</span><span class="token number">123</span><span class="token punctuation">]</span>
</code></pre>
<p>springMVC&#x7684;controller&#x7684;&#x53C2;&#x6570;&#x4E2D;,&#x4E0D;&#x652F;&#x6301;&#x5404;&#x79CD;&#x63A5;&#x53E3;,&#x6BD4;&#x5982;List,Map,Set,&#x4F46;&#x662F;&#x80FD;&#x652F;&#x6301;&#x5E38;&#x89C1;&#x7684;POJO&#x7C7B;&#x7684;&#x6620;&#x5C04;&#x6CE8;&#x5165;,&#x6CE8;&#x5165;&#x7684;&#x65B9;&#x5F0F;&#x662F;&#x5C06;requestMap&#x4E2D;&#x5BF9;&#x5E94;&#x88AB;&#x6CE8;&#x5165;bean&#x7684;&#x5C5E;&#x6027;&#x540D;<strong style="color:red">(&#x53EA;&#x80FD;&#x662F;&#x7B2C;&#x4E00;&#x5C42;&#x5C5E;&#x6027;)</strong>.</p>
<p>&#x5982;&#x679C;&#x51FA;&#x73B0;requestMap&#x4E2D;&#x5C5E;&#x6027;&#x540D;&#x91CD;&#x590D;,httpService&#x4F1A;&#x628A;&#x91CD;&#x590D;&#x7684;&#x5C5E;&#x6027;&#x540D;&#x6253;&#x5305;&#x6210;&#x4E00;&#x4E2A;&#x7528;&quot;,&quot;&#x5206;&#x5272;&#x7684;&#x4E00;&#x4E2A;&#x5C5E;&#x6027;,&#x6BD4;&#x5982;&#x4E0A;&#x8FF0;&#x65E5;&#x5FD7;&#x4E2D;&#x7684;name&#x5C5E;&#x6027;</p>
<h4 id="test3&#x7684;&#x65E5;&#x5FD7;&#x6253;&#x5370;">test3&#x7684;&#x65E5;&#x5FD7;&#x6253;&#x5370;</h4>
<p>&#x5C55;&#x793A;&#x5982;&#x679C;&#x53C2;&#x6570;&#x4E2D;&#x51FA;&#x73B0;Map,Set,List&#x7684;&#x8C03;&#x7528;&#x65B9;&#x5F0F;.</p>
<p>&#x5728;&#x63A5;&#x53E3;&#x58F0;&#x660E;&#x4E2D;,&#x5982;&#x679C;&#x63A5;&#x53E3;&#x65B9;&#x6CD5;&#x58F0;&#x660E;@Consumes(value=&quot;application/json&quot;),&#x5C31;&#x4EE3;&#x8868;,&#x5F53;&#x524D;&#x7684;&#x8BF7;&#x6C42;&#x5C06;&#x4F1A;&#x4EE5;http+json&#x7684;&#x65B9;&#x5F0F;&#x4F20;&#x8F93;,&#x5BF9;&#x5E94;&#x7684;&#x670D;&#x52A1;&#x66B4;&#x9732;,&#x4E00;&#x5B9A;&#x8981;&#x4F7F;&#x7528;@RequestBody,&#x5BF9;&#x53C2;&#x6570;&#x8FDB;&#x884C;&#x5C01;&#x88C5;,&#x800C;&#x4E14;<strong style="color:red">&#x53EA;&#x80FD;&#x4F20;&#x5165;&#x4E00;&#x4E2A;&#x53C2;&#x6570;</strong>.</p>
<pre class="language-"><code class="lang-java"><span class="token annotation punctuation">@Consumes</span><span class="token punctuation">(</span>value<span class="token operator">=</span><span class="token string">&quot;application/json&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">ApiBaseResponse</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span> <span class="token function">test3</span><span class="token punctuation">(</span><span class="token class-name">Map</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span> <span class="token punctuation">,</span> <span class="token class-name">Object</span><span class="token punctuation">&gt;</span></span> paramMap<span class="token punctuation">)</span><span class="token punctuation">;</span>

INFO  c<span class="token punctuation">.</span>i<span class="token punctuation">.</span>b<span class="token punctuation">.</span>h<span class="token punctuation">.</span>u<span class="token punctuation">.</span><span class="token class-name">HttpSignCalculator</span> <span class="token operator">-</span> sign calcuate param<span class="token operator">:</span>age<span class="token operator">=</span><span class="token number">11</span><span class="token operator">&amp;</span>name<span class="token operator">=</span>s1<span class="token operator">&amp;</span>value<span class="token operator">=</span>v1<span class="token operator">&amp;</span><span class="token number">12345</span>
INFO  c<span class="token punctuation">.</span>i<span class="token punctuation">.</span>b<span class="token punctuation">.</span>h<span class="token punctuation">.</span>u<span class="token punctuation">.</span><span class="token class-name">HttpConnectionUtils</span> <span class="token operator">-</span> ready <span class="token keyword">to</span> send post http request<span class="token operator">:</span>http<span class="token operator">:</span><span class="token operator">/</span><span class="token operator">/</span>localhost<span class="token operator">:</span><span class="token number">17070</span><span class="token operator">/</span>mock<span class="token operator">/</span>httpMock<span class="token operator">/</span>test3<span class="token punctuation">.</span><span class="token keyword">do</span> <span class="token punctuation">,</span>params<span class="token operator">:</span><span class="token punctuation">,</span>body<span class="token operator">:</span><span class="token punctuation">{</span><span class="token string">&quot;_DEFAULT0&quot;</span><span class="token operator">:</span><span class="token punctuation">{</span><span class="token string">&quot;name&quot;</span><span class="token operator">:</span><span class="token string">&quot;senvon&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;paramMap&quot;</span><span class="token operator">:</span><span class="token punctuation">{</span><span class="token string">&quot;name&quot;</span><span class="token operator">:</span><span class="token string">&quot;s1&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;value&quot;</span><span class="token operator">:</span><span class="token string">&quot;v1&quot;</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token string">&quot;age&quot;</span><span class="token operator">:</span><span class="token number">11</span><span class="token punctuation">}</span><span class="token punctuation">}</span> <span class="token punctuation">,</span> header<span class="token operator">:</span><span class="token punctuation">{</span>senvon<span class="token operator">=</span><span class="token number">322</span>AC5E5822DC3B4BEEC99E8E02314E3<span class="token punctuation">}</span>
INFO  c<span class="token punctuation">.</span>i<span class="token punctuation">.</span>h<span class="token punctuation">.</span><span class="token class-name">HttpServiceController</span> <span class="token operator">-</span> ready <span class="token keyword">to</span> test3 <span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token punctuation">{</span>name<span class="token operator">=</span>senvon<span class="token punctuation">,</span> paramMap<span class="token operator">=</span><span class="token punctuation">{</span><span class="token string">&quot;name&quot;</span><span class="token operator">:</span><span class="token string">&quot;s1&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;value&quot;</span><span class="token operator">:</span><span class="token string">&quot;v1&quot;</span><span class="token punctuation">}</span><span class="token punctuation">,</span> age<span class="token operator">=</span><span class="token number">11</span><span class="token punctuation">}</span>
</code></pre>
<h4 id="test4&#x7684;&#x65E5;&#x5FD7;&#x6253;&#x5370;">test4&#x7684;&#x65E5;&#x5FD7;&#x6253;&#x5370;</h4>
<p>&#x5C55;&#x793A;&#x53C2;&#x6570;&#x4E2D;List<bean>&#x7684;&#x4F20;&#x8F93;&#x6A21;&#x5F0F;.<strong style="color:red">&#x53EA;&#x80FD;&#x4F20;&#x5165;&#x4E00;&#x4E2A;&#x53C2;&#x6570;</strong>.</bean></p>
<pre class="language-"><code class="lang-java"><span class="token annotation punctuation">@Consumes</span><span class="token punctuation">(</span>value<span class="token operator">=</span><span class="token string">&quot;application/json&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">ApiBaseResponse</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span> <span class="token function">test4</span><span class="token punctuation">(</span><span class="token class-name">List</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">ModelTest</span><span class="token punctuation">&gt;</span></span> modelList<span class="token punctuation">)</span><span class="token punctuation">;</span>

INFO  c<span class="token punctuation">.</span>i<span class="token punctuation">.</span>b<span class="token punctuation">.</span>h<span class="token punctuation">.</span>u<span class="token punctuation">.</span><span class="token class-name">HttpSignCalculator</span> <span class="token operator">-</span> sign calcuate param<span class="token operator">:</span>aaa<span class="token operator">=</span><span class="token number">1231111</span><span class="token operator">&amp;</span>bbb<span class="token operator">=</span>abc11111<span class="token operator">&amp;</span>name<span class="token operator">=</span>senvon<span class="token operator">&amp;</span><span class="token number">12345</span>
INFO  c<span class="token punctuation">.</span>i<span class="token punctuation">.</span>b<span class="token punctuation">.</span>h<span class="token punctuation">.</span>u<span class="token punctuation">.</span><span class="token class-name">HttpConnectionUtils</span> <span class="token operator">-</span> ready <span class="token keyword">to</span> send post http request<span class="token operator">:</span>http<span class="token operator">:</span><span class="token operator">/</span><span class="token operator">/</span>localhost<span class="token operator">:</span><span class="token number">17070</span><span class="token operator">/</span>mock<span class="token operator">/</span>httpMock<span class="token operator">/</span>test4<span class="token punctuation">.</span><span class="token keyword">do</span> <span class="token punctuation">,</span>params<span class="token operator">:</span><span class="token punctuation">,</span>body<span class="token operator">:</span><span class="token punctuation">{</span><span class="token string">&quot;_DEFAULT0&quot;</span><span class="token operator">:</span><span class="token punctuation">[</span><span class="token punctuation">{</span><span class="token string">&quot;aaa&quot;</span><span class="token operator">:</span><span class="token string">&quot;123&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;bbb&quot;</span><span class="token operator">:</span><span class="token string">&quot;abc&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;name&quot;</span><span class="token operator">:</span><span class="token string">&quot;senvon&quot;</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token string">&quot;aaa&quot;</span><span class="token operator">:</span><span class="token string">&quot;1231111&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;bbb&quot;</span><span class="token operator">:</span><span class="token string">&quot;abc11111&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;name&quot;</span><span class="token operator">:</span><span class="token string">&quot;senvon&quot;</span><span class="token punctuation">}</span><span class="token punctuation">]</span><span class="token punctuation">}</span> <span class="token punctuation">,</span> header<span class="token operator">:</span><span class="token punctuation">{</span>senvon<span class="token operator">=</span><span class="token number">451882</span>B8F52839B4F2E92EB75AE72426<span class="token punctuation">}</span>
INFO  c<span class="token punctuation">.</span>i<span class="token punctuation">.</span>h<span class="token punctuation">.</span><span class="token class-name">HttpServiceController</span> <span class="token operator">-</span> ready <span class="token keyword">to</span> test4 <span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span>java<span class="token punctuation">.</span>util<span class="token punctuation">.</span><span class="token class-name">ArrayList</span><span class="token annotation punctuation">@4059d06d</span><span class="token punctuation">[</span>size<span class="token operator">=</span><span class="token number">2</span><span class="token punctuation">]</span>
</code></pre>
<h4 id="test5&#x7684;&#x65E5;&#x5FD7;&#x6253;&#x5370;">test5&#x7684;&#x65E5;&#x5FD7;&#x6253;&#x5370;</h4>
<p>&#x6570;&#x7EC4;&#x4F5C;&#x4E3A;&#x53C2;&#x6570;&#x7684;&#x4F20;&#x53C2;&#x65B9;&#x5F0F;.</p>
<p>springMVC&#x5728;&#x6CE8;&#x5165;controller&#x7684;&#x6570;&#x7EC4;&#x53C2;&#x6570;&#x65F6;,&#x4F1A;&#x81EA;&#x52A8;&#x4F7F;&#x7528;&quot;,&quot;&#x5206;&#x5272;,&#x4F20;&#x5165;&#x591A;&#x4E2A;&#x53C2;&#x6570;,&#x4F46;&#x8FD9;&#x79CD;&#x4F20;&#x53C2;&#x65B9;&#x5F0F;,<strong style="color:red">&#x53EA;&#x80FD;&#x4F7F;&#x7528;&#x539F;&#x751F;&#x7C7B;&#x578B;,&#x4E0D;&#x652F;&#x6301;&#x81EA;&#x5B9A;&#x4E49;&#x7684;bean</strong>.</p>
<p>&#x5728;&#x63A5;&#x53E3;&#x58F0;&#x660E;&#x4E2D;,&#x540C;&#x6837;&#x9700;&#x8981;&#x6CE8;&#x660E;@QueryParam&#x6CE8;&#x660E;&#x53C2;&#x6570;&#x540D;</p>
<pre class="language-"><code class="lang-java"><span class="token keyword">public</span> <span class="token class-name">ApiBaseResponse</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span> <span class="token function">test5</span><span class="token punctuation">(</span><span class="token annotation punctuation">@QueryParam</span><span class="token punctuation">(</span><span class="token string">&quot;numberList&quot;</span><span class="token punctuation">)</span><span class="token class-name">Integer</span><span class="token punctuation">[</span><span class="token punctuation">]</span> numberList<span class="token punctuation">)</span><span class="token punctuation">;</span>

INFO  c<span class="token punctuation">.</span>i<span class="token punctuation">.</span>b<span class="token punctuation">.</span>h<span class="token punctuation">.</span>u<span class="token punctuation">.</span><span class="token class-name">HttpSignCalculator</span> <span class="token operator">-</span> sign calcuate param<span class="token operator">:</span>numberList<span class="token operator">=</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">,</span><span class="token number">111</span><span class="token operator">&amp;</span><span class="token number">12345</span>
INFO  c<span class="token punctuation">.</span>i<span class="token punctuation">.</span>b<span class="token punctuation">.</span>h<span class="token punctuation">.</span>u<span class="token punctuation">.</span><span class="token class-name">HttpConnectionUtils</span> <span class="token operator">-</span> ready <span class="token keyword">to</span> send post http request<span class="token operator">:</span>http<span class="token operator">:</span><span class="token operator">/</span><span class="token operator">/</span>localhost<span class="token operator">:</span><span class="token number">17070</span><span class="token operator">/</span>mock<span class="token operator">/</span>httpMock<span class="token operator">/</span>test5<span class="token punctuation">.</span><span class="token keyword">do</span> <span class="token punctuation">,</span>params<span class="token operator">:</span><span class="token punctuation">,</span>body<span class="token operator">:</span><span class="token punctuation">{</span><span class="token string">&quot;numberList&quot;</span><span class="token operator">:</span><span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">,</span><span class="token number">111</span><span class="token punctuation">]</span><span class="token punctuation">}</span> <span class="token punctuation">,</span> header<span class="token operator">:</span><span class="token punctuation">{</span>senvon<span class="token operator">=</span><span class="token number">86205</span>C8836EE93DD1C1CD51A6379FDBF<span class="token punctuation">}</span>
INFO  c<span class="token punctuation">.</span>i<span class="token punctuation">.</span>h<span class="token punctuation">.</span><span class="token class-name">HttpServiceController</span> <span class="token operator">-</span> ready <span class="token keyword">to</span> test5 <span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token punctuation">[</span><span class="token class-name">Ljava</span><span class="token punctuation">.</span>lang<span class="token punctuation">.</span><span class="token class-name">Integer</span><span class="token punctuation">;</span><span class="token annotation punctuation">@ed1b56</span><span class="token punctuation">[</span><span class="token punctuation">{</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">,</span><span class="token number">111</span><span class="token punctuation">}</span><span class="token punctuation">]</span>
</code></pre>
<h3 id="&#x5BA2;&#x6237;&#x7AEF;&#x7684;&#x5C5E;&#x6027;&#x8BF4;&#x660E;">&#x5BA2;&#x6237;&#x7AEF;&#x7684;&#x5C5E;&#x6027;&#x8BF4;&#x660E;</h3>
<table>
<thead>
<tr>
<th>&#x5C5E;&#x6027;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>targetClass</td>
<td>&#x9700;&#x8981;&#x88AB;&#x6A21;&#x62DF;&#x7684;&#x8FDC;&#x7A0B;&#x63A5;&#x53E3;,&#x901A;&#x8FC7;spring&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x865A;&#x62DF;&#x5BF9;&#x8C61;,&#x5B9E;&#x73B0;&#x8BE5;&#x63A5;&#x53E3;,&#x6240;&#x6709;&#x7684;&#x63A5;&#x53E3;&#x90FD;&#x901A;&#x8FC7;http&#x534F;&#x8BAE;&#x628A;&#x8BF7;&#x6C42;&#x53D1;&#x9001;&#x5230;&#x670D;&#x52A1;&#x7AEF;</td>
</tr>
<tr>
<td>endPoint</td>
<td>&#x8FDC;&#x7A0B;&#x670D;&#x52A1;&#x53D1;&#x5E03;&#x7684;&#x5730;&#x5740;</td>
</tr>
<tr>
<td>timeOut</td>
<td>&#x8BF7;&#x6C42;&#x7684;&#x8D85;&#x65F6;&#x65F6;&#x95F4;<strong style="color:red">,&#x5F88;&#x91CD;&#x8981;</strong></td>
</tr>
<tr>
<td>methodFix</td>
<td>&#x8BF7;&#x6C42;&#x7684;&#x540E;&#x7F00;,&#x53EF;&#x4EE5;&#x4E3A;&#x7A7A;,&#x5982;&#x679C;&#x4E3A;&#x7A7A;,&#x5219;&#x6CA1;&#x6709;&#x540E;&#x7F00;,springMVC&#x53EF;&#x4EE5;&#x652F;&#x6301;&#x6CA1;&#x6709;&#x540E;&#x7F00;&#x7684;&#x8BF7;&#x6C42;</td>
</tr>
<tr>
<td>requestHandler</td>
<td>&#x5BF9;&#x8BF7;&#x6C42;&#x4E0A;&#x4E0B;&#x6587;&#x7684;&#x62E6;&#x622A;&#x5904;&#x7406;,httpService&#x63D0;&#x4F9B;&#x4E00;&#x4E2A;&#x8BF7;&#x6C42;&#x7B7E;&#x540D;&#x7684;&#x65B9;&#x5F0F;.&#x4E00;&#x822C;&#x5BF9;&#x4E8E;&#x8FDC;&#x7A0B;&#x8BBF;&#x95EE;,&#x8FDC;&#x7A0B;&#x63A5;&#x53E3;&#x53EF;&#x80FD;&#x4F1A;&#x63D0;&#x4F9B;&#x90E8;&#x5206;&#x5B89;&#x5168;&#x529F;&#x80FD;,&#x6BD4;&#x5982;&#x7B7E;&#x540D;,&#x52A0;&#x89E3;&#x5BC6;,&#x9700;&#x8981;&#x901A;&#x8FC7;&#x62E6;&#x622A;&#x7684;&#x624B;&#x6BB5;&#x6765;&#x8FDB;&#x884C;&#x5904;&#x7406;.&#x670D;&#x52A1;&#x5668;&#x90E8;&#x5206;,&#x4E00;&#x822C;&#x662F;&#x901A;&#x8FC7;filter&#x6216;&#x8005;interceptor&#x8FDB;&#x884C;&#x5904;&#x7406;</td>
</tr>
</tbody>
</table>
<h3 id="&#x670D;&#x52A1;&#x7AEF;&#x5B9E;&#x73B0;">&#x670D;&#x52A1;&#x7AEF;&#x5B9E;&#x73B0;</h3>
<p>&#x6CE8;&#x610F;,controller&#x5B9E;&#x73B0;&#x4E86;&#x63A5;&#x53E3;.</p>
<pre class="language-"><code class="lang-java"><span class="token annotation punctuation">@Controller</span>
<span class="token annotation punctuation">@RequestMapping</span><span class="token punctuation">(</span><span class="token string">&quot;httpMock&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token keyword">class</span> <span class="token class-name">HttpServiceController</span> <span class="token keyword">implements</span> <span class="token class-name">HttpServiceMock</span><span class="token punctuation">{</span>

    <span class="token keyword">private</span> <span class="token class-name">Logger</span> logger <span class="token operator">=</span> <span class="token class-name">LoggerFactory</span><span class="token punctuation">.</span><span class="token function">getLogger</span><span class="token punctuation">(</span><span class="token function">getClass</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token annotation punctuation">@ResponseBody</span>
    <span class="token annotation punctuation">@RequestMapping</span><span class="token punctuation">(</span><span class="token string">&quot;test1&quot;</span><span class="token punctuation">)</span>
    <span class="token keyword">public</span> <span class="token class-name">ApiBaseResponse</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span> <span class="token function">test1</span><span class="token punctuation">(</span><span class="token class-name">String</span> requestId<span class="token punctuation">)</span><span class="token punctuation">{</span>
        logger<span class="token punctuation">.</span><span class="token function">info</span><span class="token punctuation">(</span><span class="token string">&quot;ready to test1 ================{}&quot;</span> <span class="token punctuation">,</span> requestId<span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token keyword">return</span> <span class="token keyword">new</span> <span class="token class-name">ApiBaseResponse</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span><span class="token punctuation">(</span><span class="token class-name">RetStatusEnum</span><span class="token punctuation">.</span>SUCCESS<span class="token punctuation">,</span><span class="token string">&quot;ok&quot;</span> <span class="token punctuation">,</span> <span class="token string">&quot;ok&quot;</span> <span class="token punctuation">,</span> <span class="token string">&quot;test1 is ok&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>

    <span class="token annotation punctuation">@ResponseBody</span>
    <span class="token annotation punctuation">@RequestMapping</span><span class="token punctuation">(</span><span class="token string">&quot;test2&quot;</span><span class="token punctuation">)</span>
    <span class="token keyword">public</span> <span class="token class-name">ApiBaseResponse</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span> <span class="token function">test2</span><span class="token punctuation">(</span><span class="token class-name">ModelTest</span> model <span class="token punctuation">,</span> <span class="token class-name">MdoelMock</span> mock<span class="token punctuation">)</span><span class="token punctuation">{</span>
        logger<span class="token punctuation">.</span><span class="token function">info</span><span class="token punctuation">(</span><span class="token string">&quot;ready to test2 ================{},{}&quot;</span> <span class="token punctuation">,</span> <span class="token class-name">ToStringBuilder</span><span class="token punctuation">.</span><span class="token function">reflectionToString</span><span class="token punctuation">(</span>model<span class="token punctuation">)</span> <span class="token punctuation">,</span> <span class="token class-name">ToStringBuilder</span><span class="token punctuation">.</span><span class="token function">reflectionToString</span><span class="token punctuation">(</span>mock<span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token keyword">return</span> <span class="token keyword">new</span> <span class="token class-name">ApiBaseResponse</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span><span class="token punctuation">(</span><span class="token class-name">RetStatusEnum</span><span class="token punctuation">.</span>SUCCESS<span class="token punctuation">,</span><span class="token string">&quot;ok&quot;</span> <span class="token punctuation">,</span> <span class="token string">&quot;ok&quot;</span> <span class="token punctuation">,</span> <span class="token string">&quot;test2 is ok&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>

    <span class="token annotation punctuation">@ResponseBody</span>
    <span class="token annotation punctuation">@RequestMapping</span><span class="token punctuation">(</span><span class="token string">&quot;test3&quot;</span><span class="token punctuation">)</span>
    <span class="token keyword">public</span> <span class="token class-name">ApiBaseResponse</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span> <span class="token function">test3</span><span class="token punctuation">(</span><span class="token annotation punctuation">@RequestBody</span> <span class="token class-name">Map</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span> <span class="token punctuation">,</span> <span class="token class-name">Object</span><span class="token punctuation">&gt;</span></span> paramMap<span class="token punctuation">)</span><span class="token punctuation">{</span>
        logger<span class="token punctuation">.</span><span class="token function">info</span><span class="token punctuation">(</span><span class="token string">&quot;ready to test3 ================{}&quot;</span> <span class="token punctuation">,</span> paramMap<span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token keyword">return</span> <span class="token keyword">new</span> <span class="token class-name">ApiBaseResponse</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span><span class="token punctuation">(</span><span class="token class-name">RetStatusEnum</span><span class="token punctuation">.</span>SUCCESS<span class="token punctuation">,</span><span class="token string">&quot;ok&quot;</span> <span class="token punctuation">,</span> <span class="token string">&quot;ok&quot;</span> <span class="token punctuation">,</span> <span class="token string">&quot;test3 is ok&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>

    <span class="token annotation punctuation">@ResponseBody</span>
    <span class="token annotation punctuation">@RequestMapping</span><span class="token punctuation">(</span><span class="token string">&quot;test4&quot;</span><span class="token punctuation">)</span>
    <span class="token keyword">public</span> <span class="token class-name">ApiBaseResponse</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span> <span class="token function">test4</span><span class="token punctuation">(</span><span class="token annotation punctuation">@RequestBody</span> <span class="token class-name">List</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">ModelTest</span><span class="token punctuation">&gt;</span></span> modelList<span class="token punctuation">)</span><span class="token punctuation">{</span>
        logger<span class="token punctuation">.</span><span class="token function">info</span><span class="token punctuation">(</span><span class="token string">&quot;ready to test4 ================{}&quot;</span> <span class="token punctuation">,</span>  <span class="token class-name">ToStringBuilder</span><span class="token punctuation">.</span><span class="token function">reflectionToString</span><span class="token punctuation">(</span>modelList<span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token keyword">return</span> <span class="token keyword">new</span> <span class="token class-name">ApiBaseResponse</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span><span class="token punctuation">(</span><span class="token class-name">RetStatusEnum</span><span class="token punctuation">.</span>SUCCESS<span class="token punctuation">,</span><span class="token string">&quot;ok&quot;</span> <span class="token punctuation">,</span> <span class="token string">&quot;ok&quot;</span> <span class="token punctuation">,</span> <span class="token string">&quot;test4 is ok&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>

    <span class="token annotation punctuation">@ResponseBody</span>
    <span class="token annotation punctuation">@RequestMapping</span><span class="token punctuation">(</span><span class="token string">&quot;test5&quot;</span><span class="token punctuation">)</span>
    <span class="token keyword">public</span> <span class="token class-name">ApiBaseResponse</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span> <span class="token function">test5</span><span class="token punctuation">(</span><span class="token class-name">Integer</span><span class="token punctuation">[</span><span class="token punctuation">]</span> numberList<span class="token punctuation">)</span><span class="token punctuation">{</span>
        logger<span class="token punctuation">.</span><span class="token function">info</span><span class="token punctuation">(</span><span class="token string">&quot;ready to test5 ================{}&quot;</span> <span class="token punctuation">,</span> <span class="token class-name">ToStringBuilder</span><span class="token punctuation">.</span><span class="token function">reflectionToString</span><span class="token punctuation">(</span>numberList<span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token keyword">return</span> <span class="token keyword">new</span> <span class="token class-name">ApiBaseResponse</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span><span class="token punctuation">(</span><span class="token class-name">RetStatusEnum</span><span class="token punctuation">.</span>SUCCESS<span class="token punctuation">,</span><span class="token string">&quot;ok&quot;</span> <span class="token punctuation">,</span> <span class="token string">&quot;ok&quot;</span> <span class="token punctuation">,</span> <span class="token string">&quot;test5 is ok&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre>
<h3 id="&#x6CE8;&#x610F;&#x4E8B;&#x9879;">&#x6CE8;&#x610F;&#x4E8B;&#x9879;</h3>
<ul>
<li>&#x5BF9;&#x4E8E;&#x81EA;&#x5B9A;&#x4E49;Bean&#x7684;&#x7C7B;&#x578B;&#x53C2;&#x6570;,springMVC&#x53EA;&#x80FD;&#x5E2E;&#x5FD9;&#x6CE8;&#x5165;&#x7B2C;&#x4E00;&#x5C42;&#x7684;&#x5C5E;&#x6027;,&#x800C;&#x4E14;&#x5C5E;&#x6027;&#x540D;&#x4E0D;&#x80FD;&#x91CD;&#x590D;,&#x5982;&#x679C;&#x91CD;&#x590D;,spring&#x4F1A;&#x8BA4;&#x4E3A;&#x662F;&#x6570;&#x7EC4;</li>
<li>&#x5BF9;&#x4E8E;&#x539F;&#x751F;&#x7C7B;&#x578B;&#x7684;&#x53C2;&#x6570;,&#x4E00;&#x5B9A;&#x8981;&#x4F7F;&#x7528;@QueryParam&#x6216;&#x8005;@FormParam&#x6765;&#x8FDB;&#x884C;&#x6807;&#x8BC6;,&#x83B7;&#x5F97;&#x53C2;&#x6570;&#x540D;</li>
<li>&#x5BF9;&#x4E8E;&#x4E00;&#x5B9A;&#x8981;&#x4F7F;&#x7528;Map,List,Set&#x8FDB;&#x884C;&#x4F20;&#x53C2;&#x7684;&#x63A5;&#x53E3;,&#x4E00;&#x5B9A;&#x8981;&#x58F0;&#x660E;@Consumes(value=&quot;application/json&quot;),&#x8FD9;&#x79CD;&#x4F20;&#x53C2;&#x65B9;&#x5F0F;,&#x4F7F;&#x7528;@RequestBody&#x8FDB;&#x884C;&#x63A5;&#x6536;,&#x4F46;&#x662F;&#x53EA;&#x80FD;&#x4F20;&#x9012;&#x4E00;&#x4E2A;&#x53C2;&#x6570;,&#x4E0D;&#x652F;&#x6301;&#x591A;&#x4E2A;&#x53C2;&#x6570;.</li>
</ul>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; senvon 2020 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">Bilibili,&#x5934;&#x6761;&#x53F7;,&#x5FAE;&#x4FE1;&#x53F7;&#xFF1A;&#x8BF7;&#x641C;&#x7D22;  &#x968F;senvon&#x98DE;
2021-09-01 22:27:03
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="qilu-export-readme.html" class="navigation navigation-prev " aria-label="Previous page: qilu-export">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="validateReadme.html" class="navigation navigation-next " aria-label="Next page: qilu-validate">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"qilu-http-service","level":"1.3.6","depth":2,"next":{"title":"qilu-validate","level":"1.3.7","depth":2,"path":"base/validateReadme.md","ref":"base/validateReadme.md","articles":[]},"previous":{"title":"qilu-export","level":"1.3.5","depth":2,"path":"base/qilu-export-readme.md","ref":"base/qilu-export-readme.md","articles":[]},"dir":"ltr"},"config":{"plugins":["search-plus","-lunr","-search","tbfed-pagefooter","simple-page-toc","insert-logo","back-to-top-button","toggle-chapters","code","lightbox","copy-code-button","search-pro","emphasize","splitter","mermaid-gb3","-sharing","sharing-plus","prism","-highlight","flexible-alerts","page-toc-button","baidu","pageview-count","bilibili","donate","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy senvon 2020","modify_label":"Bilibili,头条号,微信号：请搜索  随senvon飞"},"prism":{},"emphasize":{},"livereload":{},"simple-page-toc":{"maxDepth":5,"skipFirstH1":true},"splitter":{},"search-pro":{},"bilibili":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"code":{"copyButtons":true},"donate":{"alipay":"images/toutiao.jpg","alipayText":"头条号","button":"联系方式","title":"联系方式","wechat":"images/weixin.PNG","wechatText":"公众号"},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"lightbox":{"jquery":true,"sameUuid":false},"page-toc-button":{"maxTocDepth":5,"minTocSize":2},"back-to-top-button":{},"pageview-count":{},"flexible-alerts":{"danger":{"className":"danger","icon":"fa fa-ban","label":"Attention"},"note":{"className":"info","icon":"fa fa-info-circle","label":"Note"},"style":"flat","tip":{"className":"tip","icon":"fa fa-lightbulb-o","label":"Tip"},"warning":{"className":"warning","icon":"fa fa-exclamation-triangle","label":"Warning"}},"copy-code-button":{},"baidu":{"token":"51550945f89f43511a44753249ab6675"},"sharing":{"qq":true,"all":["douban","qq","qzone","weibo"],"douban":false,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":true,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"toggle-chapters":{},"insert-logo":{"style":"background: none; height: 170px; width: 200px","url":"images/logo3.jpg"},"search-plus":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"启路框架-使用手册","language":"zh-hans","backplugin":["lightbox"],"gitbook":"*","description":"启路框架-使用手册"},"file":{"path":"base/httpService-readme.md","mtime":"2021-09-01T14:27:03.083Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-10-19T02:57:27.717Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-insert-logo/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lightbox/js/lightbox.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-copy-code-button/toggle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-flexible-alerts/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-page-toc-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-baidu/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script src="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

